package net.pws.common.beanutils.converter;

/**
 * 
 */
public final class StringConverter extends AbstractConverter {
    
    public StringConverter() {
    }
    
    @SuppressWarnings("rawtypes")
	public Object convert(Class type, Object value) {
        if (value == null || "".equals(value.toString())) {
            return (String) null;
        }
        else {
            return value.toString();
        }
    }
    
}
